import pdfkit

url = 'https://yunyinghui.feishu.cn/wiki/QuK2wYgOXiH3m6k1tADcxuhjnEg'
output_file = 'example.pdf'


config = pdfkit.configuration(wkhtmltopdf='D:\\softs\\wkhtmltox-0.12.6-1.mxe-cross-win64\\wkhtmltox\\bin\\wkhtmltopdf.exe')
pdfkit.from_url(url, output_file, configuration=config)